﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using TMDT_Nhom1A.BUS;

namespace TMDT_Nhom1A.Manager
{
    public partial class RevenueReport : System.Web.UI.Page
    {
        
        private string seriesData;
        private string seriesData_2;
        private string seriesData_3;
        private string yearlyXData;

        public string YearlyXData
        {
            get { return yearlyXData; }
            set { yearlyXData = value; }
        }

        public string SeriesData_3
        {
            get { return seriesData_3; }
            set { seriesData_3 = value; }
        }

        public string SeriesData_2
        {
            get { return seriesData_2; }
            set { seriesData_2 = value; }
        }

        public string SeriesData
        {
            get { return seriesData; }
            set { seriesData = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
           
            string monthlyRevenue = "";
            string quaterRevenue = "";
            string yearlyRevenue = "";
            string XData = "";
            Statistic_BUS.CalculateMonthlyAndQuaterRevenue(ref monthlyRevenue,ref quaterRevenue);
            Statistic_BUS.CalculateYearlyRevenue(ref XData,ref yearlyRevenue);
            seriesData = monthlyRevenue;
            seriesData_2 = quaterRevenue;
            seriesData_3 = yearlyRevenue;
            yearlyXData = XData;
        }
    }
}
